package com.igeek.javase.extendstest;

/**
 * @author chenmin
 * 2023/7/13 11:21
 * @description TODO
 */
public class Boss extends Employee{

    private double bonus;

    public Boss() {
    }

    public Boss(String name, String address, double salary, double bonus) {
        super(name, address, salary);
        this.bonus = bonus;
    }

    /**
     * 获取
     * @return bonus
     */
    public double getBonus() {
        return bonus;
    }

    /**
     * 设置
     * @param bonus
     */
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    //Alt + Insert
    @Override
    public String toString() {
        return "Boss{" +
                "bonus=" + bonus +
                "} " + super.toString();
    }
}
